package com.my.ext.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.ext.entity.Contribution;
import com.my.ext.mapper.ContributionMapper;
import com.my.ext.service.IContributionService;
import com.my.ext.utils.ResultObject;

@Service
public class ContributionService implements IContributionService{

	@Autowired
	ContributionMapper mapper;
	
	public ResultObject queryGroupContribution(int groupid) {
		List<Contribution> list = mapper.findByGroup(groupid);
		ResultObject obj = new ResultObject();
		obj.setStatus(1);
		obj.setData(list);
		return obj;
	}
	
}
